﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Windows.Forms;

namespace PHRClient
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        /// 
        public static DoctorMainForm _doctorMainForm = new DoctorMainForm();
        public static bool isAppRunning = true;

        private const string XMLFILE = PatientDataLoader.XMLFILE;

        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();            
            _doctorMainForm.Closing += _mainForm_Closing;
            Application.Run(_doctorMainForm);            
        }

        private static void _mainForm_Closing(object sender, CancelEventArgs e)
        {
            isAppRunning = false;
            Application.Exit();
        }
    }
}
